package cn.com.dycc.party_work.education.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.com.dycc.party_work.education.entity.DeptAndEducation;
import cn.com.dycc.party_work.education.entity.Education;
import cn.com.dycc.party_work.education.entity.EducationFlag;
import cn.com.dycc.party_work.education.param.FindEduParam;

/**
 * 
 * Description: 党员教育dao层
 * Author: Liket
 * Version: 1.0
 * Create Date Time: 2018年6月27日 下午3:01:54.
 * Update Date Time: 
 * @see
 */
@Repository("educationDao")
public interface EducationDao {
	
	int addEdu(Education edu);
	int deleteEdu(
			@Param("education_id")String education_id,
			@Param("org_id")String org_id);
	int deleteAllEdu(String educationids[]);
	
	int updateEdu(Education edu);
	
	Education findEdu(
			@Param("education_id")String education_id,
			@Param("org_id")String org_id);
	
	DeptAndEducation findEduById(
			@Param("education_id")String education_id,
			@Param("org_id")String org_id);
	
	List<DeptAndEducation> findAllEdu(FindEduParam param);
	String findAllEduCount(FindEduParam param);
	
	List<DeptAndEducation> findAllEduNoIssue(FindEduParam param);
	String findAllEduCountNoIssue(FindEduParam param);
	
	//发布
	int issueEdu(
			@Param("org_id")String org_id,
			@Param("list")List<String> list);
	
	EducationFlag countFlag(String org_id);
	
}
